package csl.blog.common.exception;

/**
 * @Description: TODO 统一异常处理
 * @author: 隔山海
 * @date: 2021年08月13日 21:54
 */
public class BlogException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    protected final String message;

    public BlogException(String message) {
        this.message = message;
    }

    public BlogException(String message, Throwable e) {
        super(message, e);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
